<template>
	<view class="control">
		<view class="top">
			<image mode="widthFix" src="https://jiangsudiantuo2022.oss-cn-hangzhou.aliyuncs.com/img/a040ba48458eabf6c8fea7758f79729ba4d08fc9.jpeg"></image>
			<view class="icon">
				<u-icon name="checkmark-circle-fill" color="#FFFFFF" size="50"></u-icon>
			</view>
		</view>
		<view class="info">支付成功~</view>
		<view class="info-1">请尽快核销</view>
		<view class="flex-center btn-list">
			<view class="btn">查看订单</view>
			<view class="btn btn2" >我知道了</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				backUp:''
			}
		},
		onLoad(options) {
			if (options.backUp == 1) {
				this.backUp = options.backUp
			} 
			
			this.href()
		},
		methods: {
			href(){
				setTimeout(() => {
					uni.reLaunch({
						url:'/pages/personal/personal?backUp=' + this.backUp
					})
				}, 500)
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.control{
		width: 100%;
		height: 100vh;
		.top{
			position: relative;
			image{
				width: 100%;
				margin-top: -22%;
			}
			.icon{
				position: absolute;
				left: 0;
				right: 0;
				top: -50%;
				bottom: 0;
				margin: auto;
				height: 100rpx;
				width: 100rpx;
			}
		}
		.info{
			font-size: 30rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #333333;
			margin-top: 30rpx;
			text-align: center;
			margin-bottom: 15rpx;
		}
		.info-1{
			font-size: 22rpx;
			font-family: PingFang SC;
			color: #999999;
			opacity: 0.8;
			text-align: center;
		}
		.btn-list{
			padding: 0prx 40rpx;
			margin-top: 100rpx;
			.btn{
				border-radius: 40rpx;
				font-size: 28rpx;
				font-weight: bold;
				color: #2F75FA;
				border: 1px solid #2F75FA;
				padding: 25rpx 85rpx;
			}
			.btn2{
				color: #FFFFFF;
				border: none;
				background: linear-gradient(0deg, #528EFF, #2F75FA);
				margin-left:40rpx;
			}
		}
		
	}
</style>
